package ejb.dto;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

public class UserDTO 
{
	@Pattern(regexp = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", 
			message = "invalid email")
	private String email;
	
	@NotEmpty
	private String firstName;
	
	@NotEmpty
	private String lastName;
	
	private String password;
	
	private Date birthDate;
	
	private String city;
	
	private String address;

	private String country;

	
	public String getEmail() 
	{
		return email;
	}

	public void setEmail( String email ) 
	{
		this.email = email;
	}

	public String getFirstName() 
	{
		return firstName;
	}

	public void setFirstName( String nome )
	{
		this.firstName = nome;
	}

	public String getLastName()
	{
		return lastName;
	}

	public void setLastName( String cognome ) 
	{
		this.lastName = cognome;
	}

	public String getPassword() 
	{
		return password;
	}

	public void setPassword( String psw ) 
	{
		this.password = psw;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	
	
}